﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity.ModelConfiguration;
using CapaDeDominio;

namespace CapaDeDatos.EF.ORM
{
    public class DetalleSalaInstrumentoMapping : EntityTypeConfiguration<Detalle_sala_instrumento>
    {
        public DetalleSalaInstrumentoMapping()
            : base()
        {
            ToTable("detalle_sala_instrumento");
            HasRequired(s => s.Codigo_Sala)
                .WithMany()
                .Map(s => s.MapKey("codigo_sala"));
            HasRequired(s => s.Codigo_Instrumento)
                .WithMany()
                .Map(s => s.MapKey("codigo_instrumento"));            
        }
    }
}